/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package creditcardapp.view;

import creditcardapp.model.CreditCardFactory;
import framework.view.ActionButton;
import framework.view.TopPanel;
import javax.swing.JButton;

/**
 *
 * @author ThanhNguyen
 */
public class CreditCardTopPanel extends TopPanel {

    public CreditCardTopPanel() {
        removeAll();
        CreditCardFactory creditCardFactory = (CreditCardFactory) CreditCardFactory.getInstance();

        JButton btnAddCreditCardAccount = new ActionButton(creditCardFactory.createAddCreditCardAccountController());
        btnAddCreditCardAccount.setText("Add Credit-card Account");
        add(btnAddCreditCardAccount);
        btnAddCreditCardAccount.setBounds(24, 8, 190, 33);

        JButton btnGenerateMonthlyBills = new ActionButton(creditCardFactory.createGenerateMonthlyBillsController());
        btnGenerateMonthlyBills.setText("Generate Monthly Bills");
        add(btnGenerateMonthlyBills);
        btnGenerateMonthlyBills.setBounds(240, 8, 170, 33);
    }
}
